package com.cmc.cloud.cmclink.doc.vo.calculatelogvo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 计费日志 Base VO，提供给添加、修改、详细的子 VO 使用 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
public class CalculateOperateLogBaseVO {

    @Schema(description = "业务id", requiredMode = Schema.RequiredMode.REQUIRED, example = "14606")
    @NotNull(message = "{calculateoperatelog.businessid.notnull}")
    private Long businessId;

    @Schema(description = "业务号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{calculateoperatelog.businessno.notblank}")
    @Length(max = 50, message = "{calculateoperatelog.businessno.length}")
    private String businessNo;

    @Schema(description = "操作大类", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotBlank(message = "{calculateoperatelog.calculatetype.notblank}")
    @Length(max = 50, message = "{calculateoperatelog.calculatetype.length}")
    private String calculateType;

    @Schema(description = "操作状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotBlank(message = "{calculateoperatelog.operationstatus.notblank}")
    @Length(max = 20, message = "{calculateoperatelog.operationstatus.length}")
    private String operationStatus;

    @Schema(description = "失败原因")
    @Length(max = 2000, message = "{calculateoperatelog.operationfaildesc.length}")
    private String operationFailDesc;

    @Schema(description = "发送json")
    @Length(max = 80000, message = "{calculateoperatelog.sendjson.length}")
    private String sendJson;

    @Schema(description = "接收json")
    @Length(max = 80000, message = "{calculateoperatelog.receivejson.length}")
    private String receiveJson;

    @Schema(description = "箱型json")
    @Length(max = 80000, message = "{calculateoperatelog.containerjson.length}")
    private String containerJson;

    @Schema(description = "计费港口")
    @Length(max = 5, message = "{calculateoperatelog.port.length}")
    private String port;

}
